package day5;

public class zuoye3 {

	public void test33() {
		int[] scores = { 0, 0, 1, 2, 3, 5, 4, 5, 2, 8, 7, 6, 9, 5, 4, 8, 3, 1, 0, 2, 4, 8, 7, 9, 5, 2, 1, 2, 3, 9 };

		int[] num = new int[10];
		for (int i = 0; i < scores.length; i++) {
			switch (scores[i]) {
			case 0:
				num[0]++;
				break;
			case 1:
				num[1]++;
				break;
			case 2:
				num[2]++;
				break;
			case 3:
				num[3]++;
				break;
			
			default:
				break;
			}

		}

		for (int i = 0; i < num.length; i++) {
			System.out.println(i + "的个数" + num[i]);
		}
	}

}
